package bigdata.mysql;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;

public class MysqlDelete {
    public static void main(String[] args) throws Exception{
        Class.forName("com.mysql.jdbc.Driver");
        Connection co = DriverManager.getConnection("jdbc:mysql://master:3306/test", "root", "123456");
        String sql = "delete from dept where deptno=70";
        Statement s = co.createStatement();

        int i = s.executeUpdate(sql);
        System.out.println(i);

        s.close();
        co.close();

    }
}
